<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    #box{
        width: 300px;
        height: 300px;
        border: 2px solid #111;
        display: none;
        margin: auto;
    }
    #ddd{
        text-align: center;
    }
    #lll{
        width: 100px;
        height: 40px;
        text-align: center;
        line-height: 40px;
        background-color: aqua;
        border: 2px solid #111;
        margin: 20px;
    }
    #hhh{
        width: 100px;
        height: 40px;
        text-align: center;
        line-height: 40px;
        background-color: red;
        border: 2px solid #111;
        margin: 20px;
        /* display:block; */
    }
</style>
<body>
    <h1>这里有个秘密想知道么？</h1>
    <button onclick="www()">点我就知道了</button>
    <div id="box">
        <h1 id="ddd">你是个傻猪</h1>
        <button id="lll" onclick="ccc()">对</button>
        <button id="hhh" onclick="rrr()">错</button>
    </div>
</body>
<script>
    var box=document.getElementById('box')
    function www(){
        box.style.display='block'
    }
    function ccc(){
        box.style.display='none'
        // window.open(1234567)
    }
    function rrr(){
        box.style.display='block'
    }
</script>
</html>